package com.ngc.mall.common.configure.wxPay;

import com.wechat.pay.java.core.Config;
import com.wechat.pay.java.core.RSAAutoCertificateConfig;
import com.wechat.pay.java.core.notification.NotificationConfig;

public class WxCertificateConfig {

    private static RSAAutoCertificateConfig config;
    private static WxCertificateConfig instance = new WxCertificateConfig();

    private WxCertificateConfig() {
        config = new RSAAutoCertificateConfig.Builder()
                .merchantId("1606356218")
                .privateKey("MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQDGuH7NUpCJ2wtzOpuLsBxCH5UFPBmJUockCraFnmrteFkm3fESWRhAZATAUituUNEHcU3Z2dj7jBGSZy8Bpv7g9Kg4c1U9PnzHV5jFgwEn9UXC5epAPknCHhmESMTILKmt+246NGFFhrBz3pM8qtKj9Uihn7bsDSCyFTLUnO720V211XAHQYslEdw7J6hu4noeNsucfQrKzRxYERMCVQs5SvOSu4vpHo3g++MLOPreGkmzBkeApLQINMpb44JkVGNlGOF1Du95h2BBL6vj6krBaPIOVlai0Teh1WJ0W5DhEJIicwGzOGM+TKl7avQYHLZN33Nba9pZvwrTNDezMnvDAgMBAAECggEBAIWDb66DypjUktzYg6lWqaXDklvyBTY+PI36pKchyLXEJiH2/AFX2vNoP8j3bDayFb7qYWP8+cwIT8YNjYeOq7B4sI088Ag185/7Oql5W019fWF1F+4R63yAvKQkQBI978L1KxnwF2qfE+7FnCcmnl+KbUIqDLyMFWuQ0pYG2ob49KO17B0nB0OM0bnnFiEO2weyOT1Xxib6jgz0d/Bg7qWQCGxW72TcSXevhOsCVkOj5xvTMyVdP4jdaEvazyvSeOmVuma6k27XF8F0ayisDDwwavERmGXJzEyjIv+8rROddlK2KTmEfihVWBERKlo9q4WI8lCVsoGq1VPfelD2YAECgYEA6zsdpPUnce7SasS7nlkDrrk0yUzVdrCd4gtmtlEFbQfoIWpLhKkQ9FYMD6JyWHdIaeLmsscm/Zo6lTffiTlzMT+fz0Nje58fvKqhq3gDvAs2UIDciWc4pjscUxUCM0tHhKOYIEg5lcrz7Lag9mIPCYDYLoU51MK5WAtM42cq3v8CgYEA2EQlGLotPFAtdYQ7M7ZmQlVNidk66DPa047iJcfdNHsRb/JNQy5/MN5TkQXByi5LrBf4bJTuPgWfgM7JxQkyGT0zpw1EyfAccBi3aqvEBG5nPaMTywzisgPXqrRfzX2JvTcnjin8PwzoXOrf+J8fgIDQ/Z5VuYwPnHZ697x9pz0CgYEAxMhSd1Hi6qv4ePsVXVVoAD3Ni+zr0nvTyGrzROeom1p29aU/gb4RgeWN93JVJ+65tGLtzXdPBe6EvZndNaXK2NM59KCSU7N9UE6KKrCepyvWByiV1Zh1SpK+kj5L9e8u6CYXOEJTch0zS75ID3Ve0PtpXhlzlKpFdQMXElGXCq8Cf1Yq0J0JkPx29aXdCbmQ8y16z2odI1thTc79Hx3uhDRk1I3F/QLHg+X0r1cY9B2aVIw9AL5CmKodk2++9KWNBGkJ+YqVvtK22J3RO0NFLNSXKItmbnx4pdpHraZWN9WoLzk0wI3kLJzyh6J98r8cp3CL4rkqXP2Q0KeGjXgnoekCgYB3Qr5hQJU4DrQWs+kY9d9F0LqoGEfaIrdA24iuKAWsNS+era9YHcC6OKNQIup8oUXJKJ2J2sCX1b6G6DyEc868Vg3mHo+jSWhazFgxG0H5zYdg/4nPryh21NKONlxzLEoNXt6CukZogRFzac6g+aaPtZSoMy/RA41BaZutOteUaQ==")
                .merchantSerialNumber("4FC8C01F300FB890271E704405691005177C8107")
                .apiV3Key("EVX4zFkIZlJ70DRfhs3HYT0QGckUG5xd")
                .build();
    }

    public static WxCertificateConfig getInstance() {
        return instance;
    }

    public Config getConfig() {
        return config;
    }

    public NotificationConfig getNotificationConfig() {
        return config;
    }

}
